GET and POST requests using Python